export function myRequest(url, callback, method = 'GET', data = '') {
	const token = uni.getStorageSync('token')
	// const baseURL = 'http://120.46.22.142/appa'
	const baseURL = '/h5api/'
	uni.request({
		url: baseURL + url,
		method: method,
		data: data,
		header: {
			token: token
		},
		success(res) {
			if (res.data.code == 1) {
				callback(null, res.data);
			} else {
				callback(res.data.msg, null)
			}
		},
		fail(res) {
			console.log(res)
			callback('接口请求失败', null)
		}
	})
}